

package com.kimo.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.model.RetailProd;
import com.kimo.shop.bean.param.RetailProdParam;
import com.kimo.shop.common.util.PageParam;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 *
 *
 * @author kimo-taozhouchuan
 * @date 2020-08-24 15:18:35
 */
public interface RetailProdService extends IService<RetailProd> {


    IPage<RetailProd> getPage(PageParam<RetailProd> page, RetailProd retailProd);

    void removeRetainProdByIds(Long[] ids, Long shopId);

    boolean countBarCode(String barCode);

    void countBarCodeAndId(String barCode, Long retailProdId);

    RetailProd getInfo(Long retailProdId);

    List<RetailProdParam> getBySkuId(Long skuId);

    void exportRetailProd(RetailProd retailProd, HttpServletResponse response, Long shopId);

    void importRetailProdModel(HttpServletResponse response, Long shopId);

    Object parseFile(MultipartFile excelFile, Long shopId) throws IOException, InvalidFormatException;

    boolean updateAndUpdateStock(RetailProd retailProd);

}
